import type { App, Plugin } from "vue";
import * as components from "./components";

export * from "./components";
export * from "./typing";

export type { NaivePlusUIResolver } from "./utils/resolver";
export const install = (app: App) => {
  Object.values(components).forEach((comp) => {
    if (comp.install) {
      app.use(comp as Plugin);
    }
  });
  return app;
};

export default {
  install,
};
